package cn.zjweu.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/*
 * 订单记录表
 * */
public class Order {
    /*订单ID*/
    private Integer orderId;
    /*下单用户*/
    private User user;
    /*订单生成时间*/
    private String createTime;
//    /*送货城市*/
//    private String deliverCity;
//    /*送货地址*/
//    private String deliverAddress;
//    /*收货人姓名*/
//    private String name;
//    /*收货人电话号码*/
//    private String telephone;
    /*送货时间*/
    private String deliverTime;
    /*订单状态，0：未发货，1已发货，2交易完成，3交易取消*/
    private Integer status;
    /*订单折扣*/
    private BigDecimal discount;
    /*订单总金额*/
    private BigDecimal totalPrice;
    /*送货员姓名*/
    private String deliverMan;
    /*订单商品*/
    private List<OrderDetails> orderDetailsList;

    public Order() {
    }

    public Order(Integer orderId, User user, String createTime, String deliverTime, Integer status, BigDecimal discount, BigDecimal totalPrice, String deliverMan) {
        this.orderId = orderId;
        this.user = user;
        this.createTime = createTime;
        this.deliverTime = deliverTime;
        this.status = status;
        this.discount = discount;
        this.totalPrice = totalPrice;
        this.deliverMan = deliverMan;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(String deliverTime) {
        this.deliverTime = deliverTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getDeliverMan() {
        return deliverMan;
    }

    public void setDeliverMan(String deliverMan) {
        this.deliverMan = deliverMan;
    }

    public List<OrderDetails> getOrderDetailsList() {
        return orderDetailsList;
    }

    public void setOrderDetailsList(List<OrderDetails> orderDetailsList) {
        this.orderDetailsList = orderDetailsList;
    }
}
